//
//  SWHistoriesInfoRsp.swift
//  ChildStory
//
//  Created by linhan on 16/7/18.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation

class SWHistoriesInfoRsp: NSObject
{
    var section:[SWHistorySectionRsp]?
    
    class func modelContainerPropertyGenericClass() -> [String : AnyObject]? {
        return ["points" : NSStringFromClass(SWHistoryPointRsp)]
    }
}


class SWHistorySectionRsp: NSObject
{
    var points:[SWHistoryPointRsp]?
    var bgURL:String? = ""
    
    
    static func modelCustomPropertyMapper() -> [String : AnyObject]? {
        return ["bgURL":"bg_url"]
    }
    
    class func modelContainerPropertyGenericClass() -> [String : AnyObject]? {
        return ["points" : NSStringFromClass(SWHistoryPointRsp)]
    }
}

class SWHistoryPointRsp: NSObject
{
    var level:Int? = 0
    var subject:String? = ""
    var desc:String? = ""
    var percentX:Double? = 0
    var percentY:Double? = 0
    var examples:[SWPhotoRsp]?
    var owns:[SWPhotoRsp]?
    
    static func modelCustomPropertyMapper() -> [String : AnyObject]? {
        return ["level":"level","subject":"subject", "desc":"desc", "percentX":"percent_x", "percentY":"percent_y"]
    }
    
    class func modelContainerPropertyGenericClass() -> [String : AnyObject]? {
        return ["examples" : NSStringFromClass(SWPhotoRsp), "owns" : NSStringFromClass(SWPhotoRsp)]
    }
}

class SWPhotoRsp: NSObject
{
    var pid:String? = ""
    var thumbURL:String? = ""
    var middleURL:String? = ""
    var originURL:String? = ""
    
    static func modelCustomPropertyMapper() -> [String : AnyObject]? {
        return ["pid":"pid", "thumbURL":"thumb_url", "middleURL":"middle_url", "originURL":"origin_url"]
    }
}